#include "sparse_matrix.h"
#if 0
int main(void)
{
	sparse_matrix_lst *pMatrix;
	elem *V;
	elem *rVal;
	elem iTemp;
	int i,n;

	if (createSparseMatrixFromFile( NULL , &pMatrix, &n) == 0)
	{
		return 0;
	}

	V = (elem *)calloc(sizeof(elem),n);

	for (i=0;i<n;i++)
	{
		if (scanf("%f",&iTemp) == 0)
		{
			free_sparse_matrix_lst(pMatrix);
			return 0;
		}
		V[i] = iTemp;
	}

	rVal = (elem *)calloc(sizeof(elem),n);
	for (i=0;i<n;i++)
	{
		printf("%f ", rVal[i]);
	}


	mult_sparse_list(pMatrix,V,&rVal);
	for (i=0;i<n;i++)
	{
		printf("%f ", rVal[i]);
	}
	
	free_sparse_matrix_lst(pMatrix);
	free(V);
	free(rVal);
	return 1;
}
#endif